<div class="detailsBox">
	<div class="detaiTab">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tbody>
	<tr>
	<td align="right" class="bg" width="20%">门店地址：<span style="color: red;">*</span></td>
	  <td colspan="3">
		<span id ="hjdz">
			<@select dataSouceType="province" value="${view.shopprovince}" renderonly="true"/>&nbsp;&nbsp;
			<@select dataSouceType="city" value="${view.shopcity}"  renderonly="true"/>&nbsp;&nbsp;
			<@select dataSouceType="country" value="${view.shopcounty}"  renderonly="true"/>&nbsp;&nbsp;
	        	${view.shopaddress}&nbsp;&nbsp;
	     </span>
	     <a href="javascript:void(0);" target="_blank" onclick="hjdzmap(this);">地图中查看</a>
	  </td>
	 </tr>
	 </tbody>
	 </table>
   </div>
</div>
 <@js>
    function hjdzmap(obj){
		var location = $('#hjdz').html().replace(/[\r\n &nbsp;]/g,'');
		obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
	}
</@js>
<@jsRender/>
